Skip to content

Conversation

@srmukher
Copy link
Contributor

No description provided.

@srmukher srmukher requested a review from a team as a code owner December 30, 2025 06:39
@srmukher
Copy link
Contributor Author

srmukher commented Dec 30, 2025

@github-actions
Copy link

github-actions bot commented Dec 30, 2025

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-charts
AreaChart
406.15 kB
124.198 kB
407.505 kB
124.676 kB
1.355 kB
478 B
react-charts
DeclarativeChart
753.256 kB
217.077 kB
762.507 kB
220.428 kB
9.251 kB
3.351 kB
react-charts
DonutChart
316.651 kB
94.339 kB
348.867 kB
106.492 kB
32.216 kB
12.153 kB
react-charts
GanttChart
389.274 kB
117.944 kB
390.629 kB
118.379 kB
1.355 kB
435 B
react-charts
GroupedVerticalBarChart
397.157 kB
120.557 kB
398.512 kB
121.008 kB
1.355 kB
451 B
react-charts
HeatMapChart
391.358 kB
119.59 kB
392.713 kB
120.05 kB
1.355 kB
460 B
react-charts
LineChart
416.73 kB
126.297 kB
418.085 kB
126.769 kB
1.355 kB
472 B
react-charts
ScatterChart
396.557 kB
120.458 kB
397.912 kB
120.921 kB
1.355 kB
463 B
react-charts
VerticalBarChart
432.167 kB
125.871 kB
433.522 kB
126.317 kB
1.355 kB
446 B
react-charts
VerticalStackedBarChart
403.069 kB
121.345 kB
404.424 kB
121.811 kB
1.355 kB
466 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-charts
FunnelChart
308.221 kB
91.247 kB
react-charts
GaugeChart
316.106 kB
93.724 kB
react-charts
HorizontalBarChart
296.747 kB
87.108 kB
react-charts
HorizontalBarChartWithAxis
63 B
83 B
react-charts
Legends
235.853 kB
69.476 kB
react-charts
PolarChart
345.637 kB
105.554 kB
react-charts
SankeyChart
217.677 kB
67.098 kB
react-charts
Sparkline
91.393 kB
28.708 kB
🤖 This report was generated against c39e1d30eea7f12a312ef89a43c4ef2fede411ca

@github-actions
Copy link

Pull request demo site: URL

@srmukher srmukher force-pushed the users/srmukher/v9_donut_anno branch 3 times, most recently from 75c16d7 to a63a35d Compare January 5, 2026 10:40
@srmukher srmukher force-pushed the users/srmukher/v9_donut_anno branch from a63a35d to 0a02ca0 Compare January 5, 2026 10:52
@srmukher srmukher force-pushed the users/srmukher/v9_donut_anno branch from 0b97f45 to 3b7be6e Compare January 6, 2026 09:33
return React.useMemo<UseDonutAnnotationLayoutResult>(() => {
const annotationList = annotations ?? EMPTY_ANNOTATIONS;
const layout = resolveDonutViewportLayout(annotationList, width, height, hideLabels);
const fallbackSvgWidth = typeof width === 'number' && Number.isFinite(width) ? Math.max(width, 0) : 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is any of the code in this file sharable with chart annotation layer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

const desiredWidth = Math.max(resolvedSvgWidth + totalHorizontalPadding, 0);
const desiredHeight = Math.max(resolvedSvgHeight + totalVerticalPadding, 0);

if (typeof width === 'number' && Number.isFinite(width)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typeof width

I see lot of code repeating for width and height

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants